// src/services/index.js
export default (request) => ({
    //获取顶部菜单
    async getMenu() {
        // return await request('/api/index/menu')
        return await request('/api/sys/menu')
    },
    //首页数据
    async getIndex() {
        return await request('/api/game/index-list')
    },
    //游戏列表 - 顶部
    async gameTag(data) {
        return await request('/api/game/tag', {
            method: 'POST',
            body: data
        })
    },
    //游戏列表
    async gameList(data) {
        return await request('/api/game/list', {
            method: 'POST',
            body: data
        })
    },
})